package top.wu2020.lazy.ws.chat.application;

import org.wu.framework.web.response.Result;
import org.wu.framework.web.response.ResultFactory;
import top.wu2020.lazy.ws.chat.domain.model.community.Community;
import top.wu2020.lazy.ws.chat.application.command.community.CommunityRemoveCommand;
import top.wu2020.lazy.ws.chat.application.command.community.CommunityStoryCommand;
import top.wu2020.lazy.ws.chat.application.command.community.CommunityUpdateCommand;
import top.wu2020.lazy.ws.chat.application.command.community.CommunityQueryListCommand;
import top.wu2020.lazy.ws.chat.application.command.community.CommunityQueryOneCommand;
import top.wu2020.lazy.ws.chat.application.dto.CommunityDTO;
import java.util.List;
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
/**
 * describe community 
 *
 * @author Jia wei Wu
 * @date 2024/05/24 08:52 晚上
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyApplication 
 **/

public interface CommunityApplication {


    /**
     * describe 新增
     *
     * @param communityStoryCommand 新增     
     * @return {@link Result<Community>} 新增后领域对象     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/

    Result<Community> story(CommunityStoryCommand communityStoryCommand);

    /**
     * describe 批量新增
     *
     * @param communityStoryCommandList 批量新增     
     * @return {@link Result<List<Community>>} 新增后领域对象集合     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/

    Result<List<Community>> batchStory(List<CommunityStoryCommand> communityStoryCommandList);

    /**
     * describe 更新
     *
     * @param communityUpdateCommand 更新     
     * @return {@link Result<Community>} 领域对象     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/

    Result<Community> updateOne(CommunityUpdateCommand communityUpdateCommand);

    /**
     * describe 查询单个
     *
     * @param communityQueryOneCommand 查询单个     
     * @return {@link Result<CommunityDTO>} DTO对象     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/

    Result<CommunityDTO> findOne(CommunityQueryOneCommand communityQueryOneCommand);

    /**
     * describe 查询多个
     *
     * @param communityQueryListCommand 查询多个     
     * @return {@link Result <List<CommunityDTO>>} DTO对象     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/

    Result <List<CommunityDTO>> findList(CommunityQueryListCommand communityQueryListCommand);

    /**
     * describe 分页查询多个
     *
     * @param communityQueryListCommand 分页查询多个     
     * @return {@link Result <LazyPage<CommunityDTO>>} 分页DTO对象     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/

    Result <LazyPage<CommunityDTO>> findPage(int size,int current,CommunityQueryListCommand communityQueryListCommand);

    /**
     * describe 删除
     *
     * @param communityRemoveCommand 删除     
     * @return {@link Result<Community>}      
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/

    Result<Community> remove(CommunityRemoveCommand communityRemoveCommand);

}